package fafmessenger.entity;

import java.sql.Timestamp;

public class Message {

	private String body;
	private int id;
	private String to;
	private String from;
	private Timestamp timestamp;
	
	public Message (int id, Timestamp timestamp, String body, String from, String to){
		this.body = body;
		this.id = id;
		this.to = to;
		this.from = from;
		this.timestamp = timestamp;
	}
	
	public Message (Timestamp timestamp, String body, String from, String to) {
		id = 0;
		this.body = body;
		this.to = to;
		this.from = from;
		this.timestamp = timestamp;
	}

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getTo() {
		return to;
	}

	public void setTo(String to) {
		this.to = to;
	}

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	public Timestamp getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(Timestamp timestamp) {
		this.timestamp = timestamp;
	}

	
	
	
	
}
